﻿<%@ Page Title="" Language="C#" MasterPageFile="~/UserMasterPage.Master" AutoEventWireup="true"
    CodeBehind="Claim.aspx.cs" Inherits="InsuranceVehicle.Claim" %>

<%@ Register Src="UserMenuControl.ascx" TagName="UserMenuControl" TagPrefix="uc1" %>
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<asp:Content ID="Content1" ContentPlaceHolderID="title" runat="server">
    Claim
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="menuPlace" runat="server">
    <uc1:UserMenuControl ID="UserMenuControl1" runat="server" SelectedMenu="claim" />
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="mainContent" runat="server">
    <telerik:RadScriptManager ID="RadScriptManager1" runat="server">
        <Scripts>
            <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.Core.js">
            </asp:ScriptReference>
            <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQuery.js">
            </asp:ScriptReference>
            <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQueryInclude.js">
            </asp:ScriptReference>
        </Scripts>
    </telerik:RadScriptManager>
    <asp:Panel ID="panelClaim" runat="server">
        <center>
            <h2 style="font-size: 30px">
                Claim form</h2>
        </center>
        <div style="width: 500px; margin: auto;">
            <div style="text-align: center">
                <asp:ValidationSummary ID="ValidationSummary1" runat="server" Font-Italic="True"
                    Font-Size="Medium" ForeColor="Red" />
                <asp:Label ID="lblError" runat="server" Text="lblError" Font-Italic="True" Font-Size="Medium"
                    ForeColor="Red" Visible="false"></asp:Label>
            </div>
            <asp:Label ID="Label6" runat="server" Text="Your infomation"></asp:Label>
            <div style="padding: 20px; border-radius: 10px; border: 2px solid rgb(209, 209, 209);
                margin: auto">
                <div style="margin: 0 0 0 15px">
                    <%---------%>
                    <asp:Label ID="Label3" runat="server" Text="Your First name"></asp:Label><br />
                    <asp:TextBox ID="txtFirstname" runat="server" Width="400px" ReadOnly="true"></asp:TextBox>
                    <%---------%>
                    <br />
                    <br />
                    <%---------%>
                    <asp:Label ID="Label4" runat="server" Text="Your Last name"></asp:Label><br />
                    <asp:TextBox ID="txtLastname" Width="400px" runat="server" ReadOnly="true"></asp:TextBox>
                    <%---------%>
                    <br />
                    <br />
                    <%---------%>
                    <asp:Label ID="Label5" runat="server" Text="Personal identity"></asp:Label><br />
                    <asp:TextBox ID="txtPersonal" Width="400px" runat="server" ReadOnly="true"></asp:TextBox>
                </div>
            </div>
            <%---------%>
            <br />
            <br />
            <%---------%>
            <asp:Label ID="model" runat="server" Text="Your Policy ID" CssClass="label"></asp:Label><br />
            <asp:DropDownList ID="cbbPolicyID" runat="server" CssClass="dropdown" Width="300px"
                OnSelectedIndexChanged="cbbPolicyID_SelectedIndexChanged" 
                AutoPostBack="True">
                <asp:ListItem>Choose your Policy ID</asp:ListItem>
            </asp:DropDownList>
            <br />
            <%---------%>
            
            <asp:Panel ID="panelPolicyInfo" runat="server" Visible="false">
            <br />
            <div style="width: 500px; margin: auto; border: 2px solid #5e0b07; border-radius: 15px; text-align:center">
                <div style="background-color: #5e0b07; width: 481px; margin: auto; color: White;
                    padding: 10px; border-radius: 11px">
                    <asp:Label ID="Label7" runat="server" Text="Your Policy Infomation"></asp:Label></div>
                <div style="padding: 15px">
                    Customer Name:
                    <asp:Label ID="lblCustomername" CssClass="label" runat="server" Font-Bold="true"></asp:Label><br />
                    Insurance Type:
                    <asp:Label ID="lblInsuranceType" CssClass="label" runat="server" Font-Bold="true"></asp:Label><br />
                    Control plate of vehicle:
                    <asp:Label ID="lblVehicle" CssClass="label" runat="server" Font-Bold="true"></asp:Label><br />
                    Policy Date:
                    <asp:Label ID="lblPolicyDate" runat="server" CssClass="label" Font-Bold="true"></asp:Label><br />
                </div>
            </div>
            </asp:Panel>
            
            <p>
            </p>
            <%---------%>
            <asp:Label ID="year" runat="server" CssClass="label" Text="Place of accident"></asp:Label><br />
            <asp:TextBox ID="txtAccidentPlace" runat="server" TextMode="MultiLine" CssClass="text"
                Height="100px"></asp:TextBox>
            <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ErrorMessage="Please, enter place of accident"
                Display="None" ControlToValidate="txtAccidentPlace" SetFocusOnError="True"></asp:RequiredFieldValidator>
            <%---------%>
            <p>
            </p>
            <%---------%>
            <asp:Label ID="Label1" runat="server" Text="Accident date" CssClass="label"></asp:Label><br />
            <telerik:RadDatePicker ID="RadDatePicker1" runat="server" Culture="en-US" Width="197px"
                Skin="Sunset">
                <Calendar Skin="Sunset" UseColumnHeadersAsSelectors="False" runat="server" UseRowHeadersAsSelectors="False">
                </Calendar>
                <DateInput DateFormat="M/d/yyyy" runat="server" DisplayDateFormat="M/d/yyyy" LabelWidth="40%">
                </DateInput>
                <DatePopupButton HoverImageUrl="" ImageUrl="" />
            </telerik:RadDatePicker>
            <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ErrorMessage="Please, enter the Accident date"
                ControlToValidate="RadDatePicker1" Display="None"></asp:RequiredFieldValidator>
            <p>
            </p>
            <%-------------------%>
            <asp:Label ID="Label2" runat="server" CssClass="label" Text="Description of damage"></asp:Label><br />
            <asp:TextBox ID="txtDesDamage" runat="server" TextMode="MultiLine" CssClass="text"
                Height="100px"></asp:TextBox>
            <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ErrorMessage="Please, Description of damage"
                Display="None" ControlToValidate="txtDesDamage" SetFocusOnError="True"></asp:RequiredFieldValidator>
            <%---------%>
            <br />
            <br />
            <%---------%>
            <center>
                <asp:Button ID="btnClaim" runat="server" Text="Claim" CssClass="button" OnClick="btnClaim_Click" />
            </center>
        </div>
    </asp:Panel>
    <asp:Panel ID="panelError" runat="server">
        <center>
            <h2 style="font-size: 20px; color: red">
                <asp:Label ID="lblErrLogin" runat="server"></asp:Label>
            </h2>
        </center>
    </asp:Panel>
</asp:Content>
